Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,16 @@ protected Void visitAddColumn(AddColumn node, C context)
return null;
}

@Override
protected Void visitCreateSchema(CreateSchema node, C context)
{
for (Property property : node.getProperties()) {
process(property, context);
}

Comment thread
electrum marked this conversation as resolved.
return null;
}

@Override
protected Void visitCreateTable(CreateTable node, C context)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import io.trino.Session;
import io.trino.connector.MockConnectorFactory;
import io.trino.connector.MockConnectorPlugin;
import io.trino.connector.MockConnectorTableHandle;
Expand Down Expand Up @@ -210,6 +211,16 @@ public void testSchemaProperties()
.hasMessage("Catalog 'mock' schema property 'unknown_property' does not exist");
}

@Test
public void testExecuteWithSchemaProperties()
{
String query = "CREATE SCHEMA mock.test_schema WITH (boolean_schema_property = ?)";
Session session = Session.builder(getSession())
.addPreparedStatement("my_query", query)
.build();
computeActual(session, "EXECUTE my_query USING true");
}

@Test
public void testTableProperties()
{
Expand Down